package com.a.a.a.b.a.b;

import com.a.a.a.a.b.a;
import com.a.a.a.a.c.c.i;
import com.a.a.a.a.c.c.l;
import com.a.a.a.a.c.c.m;
import com.a.a.a.a.c.c.o;
import com.a.a.a.a.c.c.p;
import com.a.a.a.a.c.c.q;
import com.a.a.a.a.c.c.r;
import com.a.a.a.a.c.c.s;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class z
  extends v
{
  private static final Map<String, B> d = new HashMap();
  
  public z(com.a.a.a.b.a.a.b paramb, F paramF)
  {
    super(paramb, paramF);
    this.a.a(this);
  }
  
  private r a()
  {
    r localr = new r();
    for (;;)
    {
      switch (A.b[this.b.b().ordinal()])
      {
      case 1: 
        localr.a = q.a;
        break;
      case 2: 
        localr.a = q.b;
        break;
      case 3: 
        localr.a = q.c;
        break;
      case 4: 
        localr.b = true;
        break;
      case 5: 
        localr.c = true;
        break;
      case 6: 
        localr.d = s.b;
        break;
      case 7: 
        localr.d = s.c;
        break;
      case 8: 
        localr.g = true;
        break;
      case 9: 
        String str = this.b.w();
        B localB = (B)d.get(str);
        if (localB != null) {
          switch (A.a[localB.ordinal()])
          {
          case 1: 
            if (localr.e) {
              return localr;
            }
            localr.e = true;
            break;
          case 2: 
            if (localr.f != p.a) {
              return localr;
            }
            localr.f = p.b;
            break;
          case 3: 
            if (localr.f != p.a) {
              return localr;
            }
            localr.f = p.c;
          }
        }
        break;
      }
      return localr;
      this.b.k();
    }
  }
  
  private List<com.a.a.a.c.b<com.a.a.a.a.a.c, String>> b()
  {
    int i = this.b.d();
    com.a.a.a.a.a.c localc = this.a.a();
    int j = this.b.d();
    String str1 = String.valueOf(this.b.e(), i, j - i).trim();
    localc.a(str1);
    String str2 = i();
    Object localObject;
    if (this.b.b() == com.a.a.a.b.a.c.w)
    {
      localObject = new LinkedList();
      ((List)localObject).add(new com.a.a.a.c.b(localc, str2));
    }
    else
    {
      localObject = new ArrayList(1);
      ((List)localObject).add(new com.a.a.a.c.b(localc, str2));
      return localObject;
    }
    while (this.b.b() == com.a.a.a.b.a.c.w)
    {
      this.b.k();
      i = this.b.d();
      localc = this.a.a();
      j = this.b.d();
      str1 = String.valueOf(this.b.e(), i, j - i).trim();
      localc.a(str1);
      str2 = i();
      ((List)localObject).add(new com.a.a.a.c.b(localc, str2));
    }
    return localObject;
  }
  
  public com.a.a.a.a.c.c.n b(boolean paramBoolean)
  {
    a(new com.a.a.a.b.a.c[] { com.a.a.a.b.a.c.do });
    r localr = a();
    List localList = b();
    com.a.a.a.a.b.b.n localn = null;
    com.a.a.a.a.a.c localc1 = null;
    a locala = null;
    com.a.a.a.a.a.c localc2 = null;
    com.a.a.a.a.b.d locald1 = null;
    com.a.a.a.a.b.b localb = null;
    int i = 0;
    if (this.b.b() == com.a.a.a.b.a.c.br)
    {
      Object localObject1;
      if (this.b.k() == com.a.a.a.b.a.c.bb)
      {
        this.b.k();
        i = 1;
        localObject1 = new ArrayList(1);
        ((List)localObject1).add(new com.a.a.a.a.b.b.b());
        localn = new com.a.a.a.a.b.b.n((List)localObject1);
      }
      else
      {
        if (this.b.b() == com.a.a.a.b.a.c.dW)
        {
          a(new com.a.a.a.b.a.c[] { com.a.a.a.b.a.c.dW });
          localObject1 = q();
          com.a.a.a.a.a.f.d locald2 = m();
          a(new com.a.a.a.b.a.c[] { com.a.a.a.b.a.c.dr });
          com.a.a.a.a.a.f.d locald3 = m();
          a(new com.a.a.a.b.a.c[] { com.a.a.a.b.a.c.A, com.a.a.a.b.a.c.N });
          com.a.a.a.a.a.c localc3 = this.a.a();
          if (this.b.b() == com.a.a.a.b.a.c.w)
          {
            localObject2 = new LinkedList();
            ((List)localObject2).add(new com.a.a.a.c.b(locald3, localc3));
            while (this.b.b() == com.a.a.a.b.a.c.w)
            {
              this.b.k();
              locald3 = m();
              a(new com.a.a.a.b.a.c[] { com.a.a.a.b.a.c.A, com.a.a.a.b.a.c.N });
              localc3 = this.a.a();
              ((List)localObject2).add(new com.a.a.a.c.b(locald3, localc3));
            }
          }
          Object localObject2 = new ArrayList(1);
          ((List)localObject2).add(new com.a.a.a.c.b(locald3, localc3));
          if (this.b.b() == com.a.a.a.b.a.c.ej)
          {
            this.b.k();
            localc1 = this.a.a();
          }
          com.a.a.a.a.b.d locald4 = null;
          locald4 = d();
          localb = p();
          return new l((m)localObject1, localList, locald2, (List)localObject2, localc1, locald4, localb);
        }
        localn = h();
      }
    }
    if (this.b.b() == com.a.a.a.b.a.c.ej)
    {
      this.b.k();
      localc1 = this.a.a();
    }
    if (i == 0)
    {
      locala = c();
      if (this.b.b() == com.a.a.a.b.a.c.bw)
      {
        this.b.k();
        localc2 = this.a.a();
      }
      if (paramBoolean) {
        return new com.a.a.a.a.c.c.n(localr, localList, localn, localc1, locala, localc2, locald1, localb);
      }
      locald1 = d();
    }
    localb = o();
    if (i == 0) {
      switch (A.b[this.b.b().ordinal()])
      {
      case 10: 
        this.b.k();
        a(new com.a.a.a.b.a.c[] { com.a.a.a.b.a.c.dW });
        localr.h = o.b;
        break;
      case 11: 
        this.b.k();
        a(new com.a.a.a.b.a.c[] { com.a.a.a.b.a.c.bE });
        b(new String[] { "SHARE" });
        b(new String[] { "MODE" });
        localr.h = o.c;
        break;
      }
    }
    return new com.a.a.a.a.c.c.n(localr, localList, localn, localc1, locala, localc2, locald1, localb);
  }
  
  private m q()
  {
    m localm = new m();
    for (;;)
    {
      switch (A.b[this.b.b().ordinal()])
      {
      case 14: 
        localm.a = true;
        break;
      case 15: 
        localm.b = true;
        break;
      case 9: 
        String str = this.b.w();
        B localB = (B)d.get(str);
        if (localB != null)
        {
          Number localNumber;
          int i;
          switch (A.a[localB.ordinal()])
          {
          case 4: 
            localm.c = true;
            break;
          case 5: 
            localm.d = true;
            break;
          case 6: 
            localm.e = true;
            switch (A.b[this.b.k().ordinal()])
            {
            case 12: 
              localNumber = this.b.t();
              localm.i = localNumber;
              break;
            case 13: 
              i = this.b.h();
              localm.j = a(i);
              break;
            default: 
              throw a("expect digit or ? after QUEUE_ON_PK");
            }
            break;
          case 7: 
            localm.f = true;
            switch (A.b[this.b.k().ordinal()])
            {
            case 12: 
              localNumber = this.b.t();
              localm.g = localNumber;
              break;
            case 13: 
              i = this.b.h();
              localm.h = a(i);
              break;
            default: 
              throw a("expect digit or ? after TARGET_AFFECT_ROW");
            }
            break;
          }
        }
        break;
      }
      return localm;
      this.b.k();
    }
  }
  
  public com.a.a.a.a.c.c.n k()
  {
    return b(false);
  }
  
  public i l()
  {
    com.a.a.a.a.c.c.n localn = j();
    i locali = a(localn);
    return locali;
  }
  
  static
  {
    d.put("SQL_BUFFER_RESULT", B.a);
    d.put("SQL_CACHE", B.b);
    d.put("SQL_NO_CACHE", B.c);
    d.put("COMMIT_ON_SUCCESS", B.d);
    d.put("ROLLBACK_ON_FAIL", B.e);
    d.put("QUEUE_ON_PK", B.f);
    d.put("TARGET_AFFECT_ROW", B.g);
  }
}


/* Location:           C:\Users\ibm\Downloads\txc-yun-sample (1)\txc-yun-sample\lib\txc-client-2.0.72.jar
 * Qualified Name:     com.a.a.a.b.a.b.z
 * JD-Core Version:    0.7.0.1
 */